﻿using System;
using Terraria.DataStructures;

namespace Terraria.ModLoader.IO
{
	// Token: 0x020002D4 RID: 724
	public class Point16Serializer : TagSerializer<Point16, TagCompound>
	{
		// Token: 0x06001C05 RID: 7173 RVA: 0x0001415B File Offset: 0x0001235B
		public override TagCompound Serialize(Point16 value)
		{
			TagCompound tagCompound = new TagCompound();
			tagCompound["x"] = value.X;
			tagCompound["y"] = value.Y;
			return tagCompound;
		}

		// Token: 0x06001C06 RID: 7174 RVA: 0x0001418E File Offset: 0x0001238E
		public override Point16 Deserialize(TagCompound tag)
		{
			return new Point16(tag.GetShort("x"), tag.GetShort("y"));
		}
	}
}
